//
//  ClassfiyCollectionViewCell.m
//  UI_14_homework_UICollectionView
//
//  Created by li cheng on 16/8/2.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "ClassfiyCollectionViewCell.h"

@interface ClassfiyCollectionViewCell()
@property (nonatomic, strong) UIImageView *imageView;

@end
@implementation ClassfiyCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        _imageView = [[UIImageView alloc] init];
        _imageView.image = [UIImage imageNamed:@"1"];
        [self.contentView addSubview:_imageView];
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    [super applyLayoutAttributes:layoutAttributes];
    self.imageView.frame = self.contentView.bounds;
}

@end
